using System;
using UnityEngine;

[Serializable]
public class save : MonoBehaviour
{
	public WorkshopButtons3D Buttons;

	private TopSelect topSelect;

	public WorkshopButtons3D workshopButtons;

	public GameObject bg;

	public GameObject topsLoad;

	public GameObject topsWork;

	public void Start()
	{
		topSelect = (TopSelect)UnityEngine.Object.FindObjectOfType(typeof(TopSelect));
	}

	public void save()
	{
		topSelect.allowed = false;
		Buttons.allowed = true;
		topsWork.SetActiveRecursively(state: true);
		int num = 0;
		Vector3 position = topsLoad.transform.position;
		position.x = num;
		Vector3 vector2 = topsLoad.transform.position = position;
		topsLoad.SetActiveRecursively(state: false);
		bg.SetActiveRecursively(state: false);
		workshopButtons.CheckParts();
	}

	public void cross()
	{
		save();
	}

	public void Main()
	{
	}
}
